package com.glp.work.flow.mapper;


import com.glp.work.flow.pojo.WFLog;
import com.glp.work.flow.utils.MyMapper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author liwenhong
 * @title 工作流日志mapper
 * @date 2018/11/2.
 */
public interface WFLogMapper extends MyMapper<WFLog> {

  /**
   * 获取所有审批日志
   * */
  List<WFLog> getWFLog(Map<String, Object> param);

  /**
   * 获取最后审批日志
   * */
  WFLog getLastRejectLog(Map<String, Object> param);

  /**
   * 批量获取审批日志列表
   * */
  List<WFLog> getLastRejectLogByProcInstIdList(List<String> param);

  Long getLastWFlogId(Map<String, Object> param);

  void insertListLog(ArrayList<WFLog> logs);

}
